import httpReqeust from "../config";

const model = "/bpmn/instance/";

export const page = (data) => {
  return httpReqeust.post(model + "page", data);
};

export const taskHistoryPage = (data) => {
  return httpReqeust.post(model + "taskHistoryPage", data);
};

export const removeById = (id) => {
  return httpReqeust.get(model + "delete?id=" + id);
};

export const revoke = (id) => {
  return httpReqeust.get(model + "revoke?id=" + id);
};

export const get = (id) => {
  return httpReqeust.get(model + "get?instanceId=" + id);
};
